//
//  WarnDetailTableViewCell.m
//  Rail
//
//  Created by hychen on 2018/2/28.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "WarnDetailTableViewCell.h"

@interface WarnDetailTableViewCell ()
@property (nonatomic, strong) BMLineView *lineView;
@end
@implementation WarnDetailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    BMLineView *line = [BMLineView lineViewWithFrame:CGRectZero];
    self.lineView = line;
    [self.contentView addSubview:line];
    line.hidden = YES;
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.contentView);
        make.height.mas_equalTo(0.5);
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setShowLine:(BOOL)showLine {
    _showLine = showLine;
    self.lineView.hidden = !showLine;
}
@end
